package com.pinyoumei.app.adapter;

import android.support.annotation.Nullable;

import com.pinyoumei.app.R;
import com.pinyoumei.app.bean.LuckRecordBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2021-08-09.
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2021-08-09        Administrator             新增Person类
 * 2021-08-09        Administrator             增加sex属性
 */
public class LuckRecordAdapter extends BaseQuickAdapter<LuckRecordBean.ResultBean.DataListBean, BaseViewHolder> {
    public LuckRecordAdapter(int layoutResId, @Nullable List<LuckRecordBean.ResultBean.DataListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LuckRecordBean.ResultBean.DataListBean item) {
        helper.setText(R.id.tv_pride_name,item.getPride_name());
        helper.setText(R.id.tv_add_time,item.getAdd_time());
    }
}
